import { QuestionTypeMap } from "@/utils/common"
import { Button, TextArea } from "antd-mobile"

interface IProp {
  data: IQustion
}

export default function Fill({ data }: IProp) {
  return <div className="fill">
    <div className="header flex">
      <div className="type">{QuestionTypeMap[data.questionType]}</div>
      <div className="title">{data.title}</div>
    </div>
    <div className="content" dangerouslySetInnerHTML={{ __html: data.content }}></div>
    <TextArea placeholder='请输入内容' rows={5} />
    <div>
      <Button color="primary" fill="outline">确定</Button>
    </div>
  </div>
}